package com.powergame.console;

import de.lessvoid.nifty.controls.Console;
import de.lessvoid.nifty.controls.ConsoleCommands.ConsoleCommand;
import de.lessvoid.nifty.controls.console.ConsoleControl;
import de.lessvoid.nifty.tools.Color;
/**
 * SayHelloCommand.java
 *
 * 
 *
 * @author ToF
 */
public class SayHelloCommand implements ConsoleCommand {

    private Console console = null;
    
    public SayHelloCommand(){
        System.out.println("SayHelloCommand()");
    }
    
    public SayHelloCommand(Console console){
        this.console = console;
    }
    
    @Override
    public void execute(String[] args) {
        
        String mes = "Hello ";
        for(int i = 0; i < args.length; i++){
            mes += args[i];
        }
        console.output(mes, Color.WHITE);
    }
}
